#include "process.h"
#include <unistd.h>
#include <string.h>
#define SIZE 100
#define RET '='


void Process()
{
    const char* str="|\\-/";
    int len=strlen(str);
    char processbuff[100];
    int cnt=0;
    memset(processbuff,'\0',sizeof(processbuff));
    while(cnt<=100)
    {
         printf("[%-100s][%d%%][%c]\r",processbuff,cnt,str[cnt%len]);
         fflush(stdout);
         usleep(30000);
         processbuff[cnt++]=RET;
    }
    printf("\n");
}


